<p/>
<br/>
<table id="user_index_table">
  <thead>
  <tr>
    
    <th>Chinese Name</th>
    <th>English Name</th>
    <th>领取数量</th>
	<th>领取价格</th>
    <th>总花费</th>
    <th>领取时间</th>
    
  </tr>
</thead>
	<% if !@pu.blank? %>
	  <% for u in @pu %>
			<tr>
			  	  <td style="text-align:left;padding-left: 15px;">
					<%= image_tag("/images/male.gif",:title =>"male",:alt =>"male",:style => "text-align:left;padding-right: 15px;") if u.user.gender.downcase == 'male' %>
					<%= image_tag("/images/female.gif",:title =>"female",:alt =>"female",:style => "text-align:left;padding-right: 15px;") if u.user.gender.downcase == 'female' %>
			<%= link_to u.user.chinese_name,:controller => 'users',:action=>'show',:id=>u.user %></td>
			      <td><%= link_to u.user.english_name,:controller => 'users',:action=>'show',:id=>u.user %></td>
				<%#=link_to u.user.chinese_name,"/users/#{u.user.id}" %>
			  <td><%=h u.amount %></td>
			 <td><%=h u.per_cost %></td>
			  <td><%=h u.total_cost %></td>
			 <td><%=h u.updated_at.strftime("%Y-%m-%d") %></td>

			</tr>
	    
	  <% end %>
	<% else %>
	  
	<% end %>
	


</table>
<p/>
<%= link_to 'Back', products_path %>
